import Editor from '@/view/editor/Editor';

import { Navigate, RouteObject, useRoutes } from 'react-router-dom';
const routes: RouteObject[] = [
  {
    path: '/editor',
    element: <Editor />,
  },
  {
    path: '/',
    element: <Navigate to="/editor" />,
  },
];

const routeView = () => {
  let elm = useRoutes(routes);
  return elm;
};

export default routeView;
